from pydantic import BaseModel, Field


class UserDetailEntity(BaseModel):
    """
    用户详情实体
    """
    id: str
    username: str
    first_name: str
    last_name: str
    groups: list
    email: str
    is_admin: bool

    class Config:
        allow_population_by_field_name = True
